241 research outputs found

    Mechanising and verifying the WebAssembly specification

    Get PDF
    WebAssembly is a new low-level language currently being implemented in all major web browsers. It is designed to become the universal compilation target for the web, obsoleting existing solutions in this area, such as asm.js and Native Client. The WebAssembly working group has incorporated formal techniques into the development of the language, but their efforts so far have focussed on pen and paper formal specification. We present a mechanised Isabelle specification for the WebAssembly language, together with a verified executable interpreter and type checker. Moreover, we present a fully mechanised proof of the soundness of the WebAssembly type system, and detail how our work on this proof has exposed several issues with the official WebAssembly specification, influencing its development. Finally, we give a brief account of our efforts in performing differential fuzzing of our interpreter against industry implementations

    CT-Wasm: Type-Driven Secure Cryptography for the Web Ecosystem

    Get PDF
    A significant amount of both client and server-side cryptography is implemented in JavaScript. Despite widespread concerns about its security, no other language has been able to match the convenience that comes from its ubiquitous support on the "web ecosystem" - the wide variety of technologies that collectively underpins the modern World Wide Web. With the introduction of the new WebAssembly bytecode language (Wasm) into the web ecosystem, we have a unique opportunity to advance a principled alternative to existing JavaScript cryptography use cases which does not compromise this convenience. We present Constant-Time WebAssembly (CT-Wasm), a type-driven, strict extension to WebAssembly which facilitates the verifiably secure implementation of cryptographic algorithms. CT-Wasm's type system ensures that code written in CT-Wasm is both information flow secure and resistant to timing side channel attacks; like base Wasm, these guarantees are verifiable in linear time. Building on an existing Wasm mechanization, we mechanize the full CT-Wasm specification, prove soundness of the extended type system, implement a verified type checker, and give several proofs of the language's security properties. We provide two implementations of CT-Wasm: an OCaml reference interpreter and a native implementation for Node.js and Chromium that extends Google's V8 engine. We also implement a CT-Wasm to Wasm rewrite tool that allows developers to reap the benefits of CT-Wasm's type system today, while developing cryptographic algorithms for base Wasm environments. We evaluate the language, our implementations, and supporting tools by porting several cryptographic primitives - Salsa20, SHA-256, and TEA - and the full TweetNaCl library. We find that CT-Wasm is fast, expressive, and generates code that we experimentally measure to be constant-time

    Wasm SpecTec: Engineering a Formal Language Standard

    Full text link
    WebAssembly (Wasm) is a low-level bytecode language and virtual machine, intended as a compilation target for a wide range of programming languages, which is seeing increasing adoption across diverse ecosystems. As a young technology, Wasm continues to evolve -- it reached version 2.0 last year and another major update is expected soon. For a new feature to be standardised in Wasm, four key artefacts must be presented: a formal (mathematical) specification of the feature, an accompanying prose pseudocode description, an implementation in the official reference interpreter, and a suite of unit tests. This rigorous process helps to avoid errors in the design and implementation of new Wasm features, and Wasm's distinctive formal specification in particular has facilitated machine-checked proofs of various correctness properties for the language. However, manually crafting all of these artefacts requires expert knowledge combined with repetitive and tedious labor, which is a burden on the language's standardization process and authoring of the specification. This paper presents Wasm SpecTec, a technology to express the formal specification of Wasm through a domain-specific language. This DSL allows all of Wasm's currently handwritten specification artefacts to be error-checked and generated automatically from a single source of truth, and is designed to be easy to write, read, compare, and review. We believe that Wasm SpecTec's automation and meta-level error checking will significantly ease the current burden of the language's specification authors. We demonstrate the current capabilities of Wasm SpecTec by showcasing its proficiency in generating various artefacts, and describe our work towards replacing the manually written official Wasm specification document with specifications generated by Wasm SpecTec.Comment: 5 pages, 7 figure

    In search of the authentic nation: landscape and national identity in Canada and Switzerland

    Get PDF
    While the study of nationalism and national identity has flourished in the last decade, little attention has been devoted to the conditions under which natural environments acquire significance in definitions of nationhood. This article examines the identity-forming role of landscape depictions in two polyethnic nation-states: Canada and Switzerland. Two types of geographical national identity are identified. The first – what we call the ‘nationalisation of nature’– portrays zarticular landscapes as expressions of national authenticity. The second pattern – what we refer to as the ‘naturalisation of the nation’– rests upon a notion of geographical determinism that depicts specific landscapes as forces capable of determining national identity. The authors offer two reasons why the second pattern came to prevail in the cases under consideration: (1) the affinity between wild landscape and the Romantic ideal of pure, rugged nature, and (2) a divergence between the nationalist ideal of ethnic homogeneity and the polyethnic composition of the two societies under consideration

    Precision determination of electroweak parameters and the strange content of the proton from neutrino deep-inelastic scattering

    Full text link
    We use recent neutrino dimuon production data combined with a global deep-inelastic parton fit to construct a new parton set, NNPDF1.2, which includes a determination of the strange and antistrange distributions of the nucleon. The result is characterized by a faithful estimation of uncertainties thanks to the use of the NNPDF methodology, and is free of model or theoretical assumptions other than the use of NLO perturbative QCD and exact sum rules. Better control of the uncertainties of the strange and antistrange parton distributions allows us to reassess the determination of electroweak parameters from the NuTeV dimuon data. We perform a direct determination of the |V_cd| and |V_cs| CKM matrix elements, obtaining central values in agreement with the current global CKM fit: specifically we find |V_cd|=0.244\pm 0.019 and |V_cs|=0.96\pm 0.07. Our result for |V_cs| is more precise than any previous direct determination. We also reassess the uncertainty on the NuTeV determination of \sin^2\theta_W through the Paschos-Wolfenstein relation: we find that the very large uncertainties in the strange valence momentum fraction are sufficient to bring the NuTeV result into complete agreement with the results from precision electroweak data.Comment: 46 pages, 20 figures; fig.12 and discussion on positivity added, several typos corrected. Final version, to be published in Nucl. Phys.

    Very Small Embryonic-Like Stem Cells Purified from Umbilical Cord Blood Lack Stem Cell Characteristics

    Get PDF
    Very small embryonic-like (VSEL) cells have been described as putatively pluripotent stem cells present in murine bone marrow and human umbilical cord blood (hUCB) and as such are of high potential interest for regenerative medicine. However, there remain some questions concerning the precise identity and properties of VSEL cells, particularly those derived from hUCB. For this reason, we have carried out an extensive characterisation of purified populations of VSEL cells from a large number of UCB samples. Consistent with a previous report, we find that VSEL cells are CXCR4+, have a high density, are indeed significantly smaller than HSC and have an extremely high nuclear/cytoplasmic ratio. Their nucleoplasm is unstructured and stains strongly with Hoechst 33342. A comprehensive FACS screen for surface markers characteristic of embryonic, mesenchymal, neuronal or hematopoietic stem cells revealed negligible expression on VSEL cells. These cells failed to expand in vitro under a wide range of culture conditions known to support embryonic or adult stem cell types and a microarray analysis revealed the transcriptional profile of VSEL cells to be clearly distinct both from well-defined populations of pluripotent and adult stem cells and from the mature hematopoietic lineages. Finally, we detected an aneuploid karyotype in the majority of purified VSEL cells by fluorescence in situ hybridisation. These data support neither an embryonic nor an adult stem cell like phenotype, suggesting rather that hUCB VSEL cells are an aberrant and inactive population that is not comparable to murine VSEL cells
    • …
    corecore